<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>林小雨的资料 - 担保交友</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #60a5fa;
            --primary-dark: #1d4ed8;
            --secondary: #f97316;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --light-bg: #f8fafc;
            --card-bg: #ffffff;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --border-color: #e2e8f0;
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            --transition: all 0.25s ease;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--light-bg);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 65px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--card-bg);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            border-bottom: 1px solid var(--border-color);
            z-index: 1000;
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .nav-btn:hover {
            background-color: var(--light-bg);
            color: var(--primary);
        }
        
        /* 封面图区域 */
        .cover-container {
            height: 200px;
            position: relative;
        }
        
        .cover-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .cover-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        }
        
        /* 头像与基本信息 */
        .profile-header {
            padding: 0 16px;
            margin-top: -60px;
            position: relative;
        }
        
        .avatar-container {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 4px solid var(--card-bg);
            overflow: hidden;
            margin-bottom: 12px;
        }
        
        .profile-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .profile-name {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .profile-meta {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        /* 操作按钮组 */
        .action-buttons {
            display: flex;
            gap: 10px;
            padding: 0 16px 16px;
        }
        
        .primary-action {
            flex: 2;
            padding: 10px 0;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .secondary-action {
            flex: 1;
            padding: 10px 0;
            background-color: var(--light-bg);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 担保信息卡片 */
        .verified-card {
            background-color: rgba(16, 185, 129, 0.1);
            border-radius: 12px;
            padding: 14px;
            margin: 0 16px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .verified-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--success);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .verified-content {
            flex: 1;
        }
        
        .verified-title {
            font-weight: 600;
            margin-bottom: 2px;
            color: var(--success);
        }
        
        .verified-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }
        
        /* 资料内容区域 */
        .profile-content {
            background-color: var(--card-bg);
            border-radius: 16px 16px 0 0;
            margin-top: 12px;
        }
        
        .content-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
        }
        
        .content-tab {
            flex: 1;
            padding: 14px 0;
            text-align: center;
            font-weight: 500;
            color: var(--text-secondary);
            border-bottom: 2px solid transparent;
            transition: var(--transition);
        }
        
        .content-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        
        .tab-content {
            padding: 16px;
        }
        
        /* 个人资料详情 */
        .info-section {
            margin-bottom: 24px;
        }
        
        .section-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .info-item {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .info-label {
            width: 90px;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        .info-value {
            flex: 1;
            font-size: 0.95rem;
        }
        
        .interest-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .interest-tag {
            padding: 6px 12px;
            background-color: rgba(37, 99, 235, 0.1);
            color: var(--primary);
            border-radius: 16px;
            font-size: 0.85rem;
        }
        
        /* 照片展示区 */
        .photos-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3px;
        }
        
        .photo-item {
            aspect-ratio: 1;
            overflow: hidden;
        }
        
        .photo-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .photo-img:hover {
            transform: scale(1.05);
        }
        
        /* 留言区 */
        .messages-section {
            margin-top: 16px;
        }
        
        .message-input-container {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            position: relative;
        }
        
        .message-input {
            flex: 1;
            padding: 10px 14px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            background-color: var(--light-bg);
            font-size: 0.9rem;
            resize: none;
            height: 42px;
        }
        
        .send-message {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .message-item {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }
        
        .message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .message-content {
            flex: 1;
        }
        
        .message-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }
        
        .message-sender {
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .message-time {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }
        
        .message-text {
            background-color: var(--light-bg);
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.9rem;
            margin-bottom: 6px;
        }
        
        .message-actions {
            display: flex;
            gap: 16px;
            font-size: 0.8rem;
        }
        
        .message-action {
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* 回复区 */
        .replies-container {
            margin-left: 30px;
            margin-top: 8px;
        }
        
        .reply-item {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .reply-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .reply-content {
            flex: 1;
        }
        
        .reply-text {
            background-color: var(--light-bg);
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 0.85rem;
            margin-bottom: 4px;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 3px;
        }
        
        .reply-sender {
            font-weight: 500;
            font-size: 0.85rem;
        }
        
        .reply-time {
            font-size: 0.7rem;
            color: var(--text-secondary);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 65px;
            background-color: var(--card-bg);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-color);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            text-decoration: none;
        }
        
        .nav-item i {
            font-size: 1.25rem;
            margin-bottom: 4px;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            top: 60px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 0.9rem;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-btn" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">个人资料</div>
        <button class="nav-btn" id="moreBtn">
            <i class="fas fa-ellipsis-v"></i>
        </button>
    </div>
    
    <!-- 封面图 -->
    <div class="cover-container">
        <img src="https://picsum.photos/id/1043/800/400" alt="封面图" class="cover-image">
        <div class="cover-overlay"></div>
    </div>
    
    <!-- 头像与基本信息 -->
    <div class="profile-header">
        <div class="avatar-container">
            <img src="https://picsum.photos/id/64/200/200" alt="林小雨" class="profile-avatar">
        </div>
        
        <div class="profile-name">
            林小雨
            <span class="verified-badge" style="display: inline-flex; align-items: center; gap: 4px; color: #10b981; font-size: 0.8rem; font-weight: 500; padding: 2px 6px; background-color: rgba(16, 185, 129, 0.1); border-radius: 4px;">
                <i class="fas fa-shield-alt"></i> 已担保
            </span>
        </div>
        
        <div class="profile-meta">
            <span>26岁 · 女</span>
            <span>摄影师</span>
            <span>3公里</span>
            <span>活跃于 2小时前</span>
        </div>
    </div>
    
    <!-- 操作按钮组 -->
    <div class="action-buttons">
        <button class="primary-action">
            <i class="fas fa-comment"></i> 发消息
        </button>
        <button class="secondary-action">
            <i class="fas fa-heart"></i>
        </button>
        <button class="secondary-action">
            <i class="fas fa-share-alt"></i>
        </button>
        <button class="secondary-action">
            <i class="fas fa-user-plus"></i>
        </button>
    </div>
    
    <!-- 担保信息卡片 -->
    <div class="verified-card">
        <div class="verified-icon">
            <i class="fas fa-check"></i>
        </div>
        <div class="verified-content">
            <div class="verified-title">已通过平台实名认证和担保审核</div>
            <div class="verified-desc">身份信息已验证 · 信用评分优秀 · 2023年10月加入担保计划</div>
        </div>
    </div>
    
    <!-- 资料内容区域 -->
    <div class="profile-content">
        <div class="content-tabs">
            <div class="content-tab active" data-tab="info">资料</div>
            <div class="content-tab" data-tab="photos">照片</div>
            <div class="content-tab" data-tab="messages">留言</div>
        </div>
        
        <!-- 资料详情 -->
        <div class="tab-content" id="infoTab">
            <div class="info-section">
                <div class="section-title">
                    <i class="fas fa-user"></i> 个人简介
                </div>
                <p style="line-height: 1.6; margin-bottom: 16px;">
                    自由摄影师，喜欢用镜头记录生活中的美好瞬间。周末经常去周边徒步，探索未知的风景。希望认识志同道合的朋友，一起交流摄影技巧，探索世界的美好。
                </p>
            </div>
            
            <div class="info-section">
                <div class="section-title">
                    <i class="fas fa-info-circle"></i> 基本信息
                </div>
                
                <div class="info-item">
                    <div class="info-label">性别</div>
                    <div class="info-value">女</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">年龄</div>
                    <div class="info-value">26岁 (1999年出生)</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">职业</div>
                    <div class="info-value">摄影师</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">学历</div>
                    <div class="info-value">本科</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">所在地</div>
                    <div class="info-value">北京市 朝阳区</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">距离</div>
                    <div class="info-value">3.2公里</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">信任度</div>
                    <div class="info-value" style="color: var(--secondary); font-weight: 500;">
                        <i class="fas fa-star"></i> 98分 (优秀)
                    </div>
                </div>
            </div>
            
            <div class="info-section">
                <div class="section-title">
                    <i class="fas fa-heart"></i> 兴趣爱好
                </div>
                <div class="interest-tags">
                    <span class="interest-tag">摄影</span>
                    <span class="interest-tag">旅行</span>
                    <span class="interest-tag">徒步</span>
                    <span class="interest-tag">美食</span>
                    <span class="interest-tag">电影</span>
                    <span class="interest-tag">音乐</span>
                    <span class="interest-tag">阅读</span>
                    <span class="interest-tag">咖啡</span>
                </div>
            </div>
            
            <div class="info-section">
                <div class="section-title">
                    <i class="fas fa-star"></i> 担保信息
                </div>
                
                <div class="info-item">
                    <div class="info-label">担保类型</div>
                    <div class="info-value">个人身份担保</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">担保时间</div>
                    <div class="info-value">2023年10月15日</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">担保机构</div>
                    <div class="info-value">城市信用担保中心</div>
                </div>
                
                <div class="info-item">
                    <div class="info-label">信用记录</div>
                    <div class="info-value">无不良记录</div>
                </div>
            </div>
        </div>
        
        <!-- 照片展示 -->
        <div class="tab-content" id="photosTab" style="display: none;">
            <div class="info-section">
                <div class="section-title">
                    <i class="fas fa-images"></i> 照片 (6张)
                </div>
                <div class="photos-grid">
                    <div class="photo-item">
                        <img src="https://picsum.photos/id/64/300/300" alt="照片1" class="photo-img">
                    </div>
                    <div class="photo-item">
                        <img src="https://picsum.photos/id/65/300/300" alt="照片2" class="photo-img">
                    </div>
                    <div class="photo-item">
                        <img src="https://picsum.photos/id/66/300/300" alt="照片3" class="photo-img">
                    </div>
                    <div class="photo-item">
                        <img src="https://picsum.photos/id/67/300/300" alt="照片4" class="photo-img">
                    </div>
                    <div class="photo-item">
                        <img src="https://picsum.photos/id/68/300/300" alt="照片5" class="photo-img">
                    </div>
                    <div class="photo-item">
                        <img src="https://picsum.photos/id/69/300/300" alt="照片6" class="photo-img">
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 留言区 -->
        <div class="tab-content" id="messagesTab" style="display: none;">
            <div class="message-input-container">
                <textarea class="message-input" placeholder="写下你的留言..."></textarea>
                <button class="send-message">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
            
            <div class="messages-section">
                <div class="message-item">
                    <img src="https://picsum.photos/id/91/100/100" alt="王大山" class="message-avatar">
                    <div class="message-content">
                        <div class="message-header">
                            <div class="message-sender">王大山</div>
                            <div class="message-time">3天前</div>
                        </div>
                        <div class="message-text">
                            你的摄影作品很棒，特别是那组关于城市夜景的照片，很有感觉！
                        </div>
                        <div class="message-actions">
                            <div class="message-action">
                                <i class="fas fa-heart"></i> 12
                            </div>
                            <div class="message-action reply-btn">
                                <i class="fas fa-reply"></i> 回复
                            </div>
                        </div>
                        
                        <!-- 回复区 -->
                        <div class="replies-container">
                            <div class="reply-item">
                                <img src="https://picsum.photos/id/64/100/100" alt="林小雨" class="reply-avatar">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-sender">林小雨</div>
                                        <div class="reply-time">2天前</div>
                                    </div>
                                    <div class="reply-text">
                                        谢谢喜欢！我花了很多时间研究夜景拍摄技巧，很高兴得到认可~
                                    </div>
                                    <div class="message-actions">
                                        <div class="message-action">
                                            <i class="fas fa-heart"></i> 5
                                        </div>
                                        <div class="message-action reply-btn">
                                            <i class="fas fa-reply"></i> 回复
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="message-item">
                    <img src="https://picsum.photos/id/342/100/100" alt="刘阳" class="message-avatar">
                    <div class="message-content">
                        <div class="message-header">
                            <div class="message-sender">刘阳</div>
                            <div class="message-time">1周前</div>
                        </div>
                        <div class="message-text">
                            你推荐的那几家咖啡馆真的很不错，环境很适合拍照，谢谢分享！
                        </div>
                        <div class="message-actions">
                            <div class="message-action">
                                <i class="fas fa-heart"></i> 8
                            </div>
                            <div class="message-action reply-btn">
                                <i class="fas fa-reply"></i> 回复
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="message-item">
                    <img src="https://picsum.photos/id/237/100/100" alt="陈思思" class="message-avatar">
                    <div class="message-content">
                        <div class="message-header">
                            <div class="message-sender">陈思思</div>
                            <div class="message-time">2周前</div>
                        </div>
                        <div class="message-text">
                            周末有读书会活动，在朝阳区图书馆，有兴趣一起参加吗？感觉你会喜欢的。
                        </div>
                        <div class="message-actions">
                            <div class="message-action">
                                <i class="fas fa-heart"></i> 3
                            </div>
                            <div class="message-action reply-btn">
                                <i class="fas fa-reply"></i> 回复
                            </div>
                        </div>
                        
                        <!-- 回复区 -->
                        <div class="replies-container">
                            <div class="reply-item">
                                <img src="https://picsum.photos/id/64/100/100" alt="林小雨" class="reply-avatar">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-sender">林小雨</div>
                                        <div class="reply-time">2周前</div>
                                    </div>
                                    <div class="reply-text">
                                        好啊！具体是什么时间呢？我最近刚好想找些摄影相关的书籍看看~
                                    </div>
                                    <div class="message-actions">
                                        <div class="message-action">
                                            <i class="fas fa-heart"></i> 1
                                        </div>
                                        <div class="message-action reply-btn">
                                            <i class="fas fa-reply"></i> 回复
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="reply-item">
                                <img src="https://picsum.photos/id/237/100/100" alt="陈思思" class="reply-avatar">
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-sender">陈思思</div>
                                        <div class="reply-time">2周前</div>
                                    </div>
                                    <div class="reply-text">
                                        周六下午2点，到时候见~
                                    </div>
                                    <div class="message-actions">
                                        <div class="message-action">
                                            <i class="fas fa-heart"></i> 2
                                        </div>
                                        <div class="message-action reply-btn">
                                            <i class="fas fa-reply"></i> 回复
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-users"></i>
            <span>交友</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-plus-circle"></i>
            <span>发布</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-comment"></i>
            <span>消息</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- 提示消息 -->
    <div class="toast" id="toastMessage"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const backBtn = document.getElementById('backBtn');
        const moreBtn = document.getElementById('moreBtn');
        const contentTabs = document.querySelectorAll('.content-tab');
        const tabContents = {
            info: document.getElementById('infoTab'),
            photos: document.getElementById('photosTab'),
            messages: document.getElementById('messagesTab')
        };
        const actionButtons = document.querySelectorAll('.primary-action, .secondary-action');
        const sendMessageBtn = document.querySelector('.send-message');
        const messageInput = document.querySelector('.message-input');
        const replyBtns = document.querySelectorAll('.reply-btn');
        const toastMessage = document.getElementById('toastMessage');
        
        // 初始化
        function init() {
            setupEventListeners();
        }
        
        // 设置事件监听
        function setupEventListeners() {
            // 返回按钮
            backBtn.addEventListener('click', () => {
                history.back();
                showToast('返回列表');
            });
            
            // 更多按钮
            moreBtn.addEventListener('click', () => {
                showToast('更多操作');
            });
            
            // 标签切换
            contentTabs.forEach(tab => {
                tab.addEventListener('click', () => {
                    const tabName = tab.getAttribute('data-tab');
                    
                    // 更新标签状态
                    contentTabs.forEach(t => t.classList.remove('active'));
                    tab.classList.add('active');
                    
                    // 更新内容显示
                    Object.keys(tabContents).forEach(key => {
                        tabContents[key].style.display = key === tabName ? 'block' : 'none';
                    });
                    
                    showToast(`${tab.textContent}页面`);
                });
            });
            
            // 操作按钮
            actionButtons.forEach((btn, index) => {
                const actions = ['发消息', '点赞', '分享', '关注'];
                btn.addEventListener('click', () => {
                    if (index === 3) { // 关注按钮
                        if (btn.innerHTML.includes('user-plus')) {
                            btn.innerHTML = '<i class="fas fa-check"></i>';
                            showToast('已关注');
                        } else {
                            btn.innerHTML = '<i class="fas fa-user-plus"></i>';
                            showToast('已取消关注');
                        }
                    } else if (index === 1) { // 点赞按钮
                        btn.classList.toggle('liked');
                        if (btn.classList.contains('liked')) {
                            btn.style.color = var(--danger);
                            showToast('已点赞');
                        } else {
                            btn.style.color = '';
                            showToast('已取消点赞');
                        }
                    } else {
                        showToast(actions[index]);
                    }
                });
            });
            
            // 发送留言
            sendMessageBtn.addEventListener('click', () => {
                const message = messageInput.value.trim();
                if (message) {
                    showToast('留言已发送');
                    messageInput.value = '';
                    // 在实际应用中，这里会添加新留言到列表
                } else {
                    showToast('请输入留言内容');
                }
            });
            
            // 回复按钮
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const sender = this.closest('.message-content, .reply-content').querySelector('.message-sender, .reply-sender').textContent;
                    messageInput.value = `回复 @${sender}：`;
                    messageInput.focus();
                    // 滚动到底部
                    window.scrollTo({
                        top: document.body.scrollHeight,
                        behavior: 'smooth'
                    });
                });
            });
            
            // 照片点击查看大图
            const photoItems = document.querySelectorAll('.photo-img');
            photoItems.forEach((img, index) => {
                img.addEventListener('click', () => {
                    showToast(`查看照片 ${index + 1}`);
                    // 在实际应用中，这里会打开照片预览
                });
            });
        }
        
        // 显示提示消息
        function showToast(message) {
            toastMessage.textContent = message;
            toastMessage.classList.add('show');
            setTimeout(() => {
                toastMessage.classList.remove('show');
            }, 2000);
        }
        
        // 初始化页面
        document.addEventListener('DOMContentLoaded', init);
    </script>
</body>
</html>
